﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainModel.Abstract;
using DomainModel.Entities;

namespace DomainModel.Concrete
{
    public class FakeProductsRepository:IProductsRepository
    {
        private static IQueryable<Product> fakeProducts = new List<Product>{
            new Product{Name = "Football", Price=25},
            new Product{Name = "Surf Board", Price=179},
            new Product{Name = "Running Shoes", Price=95}
        }.AsQueryable();

        public IQueryable<Product> Products
        {
            get { return fakeProducts; }
        }

        #region IProductsRepository Members

        public void Add(Product product)
        {
            throw new NotImplementedException();
        }

        public void Update(Product product)
        {
            throw new NotImplementedException();
        }

        public void Remove(Product product)
        {
            throw new NotImplementedException();
        }

        public Product GetById(int productId)
        {
            throw new NotImplementedException();
        }

        public Product GetByName(string name)
        {
            throw new NotImplementedException();
        }

        public ICollection<Product> GetByCategory(string category)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
